home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Utils / Universal Viewer / UniversalViewer.exe / Plugins / Syn2 / HL / Modula2.lcf < prev    next >
Encoding:
Text File  |  2007-12-12  |  6.1 KB  |  269 lines

  1. object SyntAnal15: TLibSyntAnalyzer
  2.   Formats = <
  3.     item
  4.       DisplayName = 'Default'
  5.       Font.Charset = DEFAULT_CHARSET
  6.       Font.Color = clWindowText
  7.       Font.Height = -13
  8.       Font.Name = 'Courier New'
  9.       Font.Style = []
  10.       FormatType = ftCustomFont
  11.     end
  12.     item
  13.       DisplayName = 'Marked block'
  14.       Font.Charset = DEFAULT_CHARSET
  15.       Font.Color = clHighlightText
  16.       Font.Height = -13
  17.       Font.Name = 'Courier New'
  18.       Font.Style = []
  19.       BgColor = clHighlight
  20.       FormatType = ftColor
  21.     end
  22.     item
  23.       DisplayName = 'Comment'
  24.       Font.Charset = DEFAULT_CHARSET
  25.       Font.Color = clRed
  26.       Font.Height = -13
  27.       Font.Name = 'Courier New'
  28.       Font.Style = [fsBold]
  29.     end
  30.     item
  31.       DisplayName = 'Number'
  32.       Font.Charset = DEFAULT_CHARSET
  33.       Font.Color = clNavy
  34.       Font.Height = -13
  35.       Font.Name = 'Courier New'
  36.       Font.Style = [fsBold]
  37.     end
  38.     item
  39.       DisplayName = 'String'
  40.       Font.Charset = DEFAULT_CHARSET
  41.       Font.Color = clBlue
  42.       Font.Height = -13
  43.       Font.Name = 'Courier New'
  44.       Font.Style = []
  45.     end
  46.     item
  47.       DisplayName = 'Symbol'
  48.       Font.Charset = DEFAULT_CHARSET
  49.       Font.Color = clMaroon
  50.       Font.Height = -13
  51.       Font.Name = 'Courier New'
  52.       Font.Style = [fsBold]
  53.     end
  54.     item
  55.       DisplayName = 'Reserved word'
  56.       Font.Charset = DEFAULT_CHARSET
  57.       Font.Color = clWindowText
  58.       Font.Height = -13
  59.       Font.Name = 'Courier New'
  60.       Font.Style = [fsBold]
  61.     end
  62.     item
  63.       DisplayName = 'Identifier'
  64.       Font.Charset = DEFAULT_CHARSET
  65.       Font.Color = clWindowText
  66.       Font.Height = -13
  67.       Font.Name = 'Courier New'
  68.       Font.Style = []
  69.     end>
  70.   TokenRules = <
  71.     item
  72.       DisplayName = 'Comment 1'
  73.       StyleName = 'Comment'
  74.       AlwaysEnabled = True
  75.       TokenType = 1
  76.       Expression = '(?s)\(\*.*?(\*\)|\Z)'
  77.       ColumnFrom = 0
  78.       ColumnTo = 0
  79.     end
  80.     item
  81.       DisplayName = 'Any name'
  82.       StyleName = 'Identifier'
  83.       TokenType = 2
  84.       Expression = '[a-z_]\w*'
  85.       ColumnFrom = 0
  86.       ColumnTo = 0
  87.     end
  88.     item
  89.       DisplayName = 'String'
  90.       StyleName = 'String'
  91.       TokenType = 4
  92.       Expression = '".*?("|$)'
  93.       ColumnFrom = 0
  94.       ColumnTo = 0
  95.     end
  96.     item
  97.       DisplayName = 'Float'
  98.       StyleName = 'Number'
  99.       TokenType = 6
  100.       Expression = '\d+ \.? \d+ e [\+\-]? \d+ |'#13#10'\d+ \. \d+'
  101.       ColumnFrom = 0
  102.       ColumnTo = 0
  103.     end
  104.     item
  105.       DisplayName = 'Integer'
  106.       StyleName = 'Number'
  107.       TokenType = 5
  108.       Expression = '\d+'
  109.       ColumnFrom = 0
  110.       ColumnTo = 0
  111.     end
  112.     item
  113.       DisplayName = 'Symbol'
  114.       StyleName = 'Symbol'
  115.       TokenType = 3
  116.       Expression = '[/\*,\.;:\(\)=<>\+\-\[\]]'
  117.       ColumnFrom = 0
  118.       ColumnTo = 0
  119.     end>
  120.   BlockRules = <
  121.     item
  122.       DisplayName = 'Key words'
  123.       StyleName = 'Reserved word'
  124.       BlockType = btTagDetect
  125.       ConditionList = <
  126.         item
  127.           TagList.Strings = (
  128.             'array'
  129.             'asm'
  130.             'begin'
  131.             'boolean'
  132.             'by'
  133.             'cardinal'
  134.             'case'
  135.             'char'
  136.             'class'
  137.             'const'
  138.             'definition'
  139.             'destroy'
  140.             'div'
  141.             'do'
  142.             'else'
  143.             'elsif'
  144.             'end'
  145.             'exit'
  146.             'export'
  147.             'for'
  148.             'foreign'
  149.             'from'
  150.             'if'
  151.             'implementation'
  152.             'import'
  153.             'inherit'
  154.             'init'
  155.             'inline'
  156.             'integer'
  157.             'longcard'
  158.             'longint'
  159.             'longreal'
  160.             'loop'
  161.             'mod'
  162.             'module'
  163.             'nil'
  164.             'of'
  165.             'pointer'
  166.             'procedure'
  167.             'real'
  168.             'record'
  169.             'repeat'
  170.             'return'
  171.             'set'
  172.             'then'
  173.             'to'
  174.             'type'
  175.             'until'
  176.             'var'
  177.             'while'
  178.             'with')
  179.           TokenTypes = 4
  180.           IgnoreCase = True
  181.         end>
  182.       HighlightPos = cpAny
  183.       IgnoreAsParent = False
  184.     end
  185.     item
  186.       DisplayName = 'Class start'
  187.       ConditionList = <
  188.         item
  189.           TokenTypes = 4
  190.         end
  191.         item
  192.           TagList.Strings = (
  193.             'class'
  194.             'procedure')
  195.           TokenTypes = 4
  196.           IgnoreCase = True
  197.         end>
  198.       BlockEnd = 'class end'
  199.       NameFmt = '%s1 %s0'
  200.       HighlightPos = cpAny
  201.       IgnoreAsParent = False
  202.     end
  203.     item
  204.       DisplayName = 'class end'
  205.       BlockType = btRangeEnd
  206.       ConditionList = <
  207.         item
  208.           TokenTypes = 4
  209.         end
  210.         item
  211.           TagList.Strings = (
  212.             'end')
  213.           TokenTypes = 4
  214.           IgnoreCase = True
  215.         end>
  216.       SameIdent = True
  217.       HighlightPos = cpAny
  218.       IgnoreAsParent = False
  219.     end
  220.     item
  221.       DisplayName = 'Block comment'
  222.       BlockName = 'Block comment'
  223.       NotParent = True
  224.       ConditionList = <
  225.         item
  226.           TokenTypes = 2
  227.         end>
  228.       BlockEnd = 'Block comment end'
  229.       DisplayInTree = False
  230.       HighlightPos = cpAny
  231.       IgnoreAsParent = False
  232.     end
  233.     item
  234.       DisplayName = 'Block comment end'
  235.       BlockType = btRangeEnd
  236.       ConditionList = <
  237.         item
  238.         end
  239.         item
  240.           TokenTypes = 2
  241.         end>
  242.       BlockOffset = 1
  243.       HighlightPos = cpAny
  244.       IgnoreAsParent = False
  245.     end>
  246.   CodeTemplates = <>
  247.   SubAnalyzers = <
  248.     item
  249.       DisplayName = 'Asm'
  250.       StartExpression = '(?i)asm'#13#10
  251.       EndExpression = '(?i)end'#13#10
  252.       SyntAnalyzer = SyntAnalyzer13
  253.     end>
  254.   TokenTypeNames.Strings = (
  255.     'Unknown'
  256.     'Comment'
  257.     'Identifier'
  258.     'Symbol'
  259.     'String'
  260.     'Integer const'
  261.     'Float const'
  262.     'Hex const'
  263.     'Char const'
  264.     'Preprocessor')
  265.   MarkedBlockStyle = 'Marked block'
  266.   DefaultStyleName = 'Default'
  267.   LexerName = 'Modula 2'
  268. end
  269.